import {legacy_createStore as createStore} from "redux"
import {combineReducers,applyMiddleware} from "redux" // 用于合并抽离出去的reducer的,applyMiddleware是用来处理中间件得
import hotReducer from "./hot/index.js"
import thunk from "redux-thunk" // 处理异步得中间件，把他引进来，rudex就可以用异步了
import logger from "redux-logger" // 打印redux日志得
let reducer = combineReducers({
    hotReducer
})
export default createStore(reducer,applyMiddleware(thunk,logger))